fn main() {
    println!("Hello, world!");

    // Get command line arguments
    let args: Vec<String> = std::env::args().collect();
    println!("{:?}", args);

    // Read a file and print its contents

    // Open a file for reading
    let file = std::fs::File::open("example.txt").expect("Failed to open file");
    // Read the contents of the file into a string
    let contents = std::io::read_to_string(file).expect("Failed to read file");
    println!("File contents: {}", contents);
}

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}
